using System;
using System.Collections;
using Slaks.ClusteringInfo;

namespace TestClusteringInfo
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			ClusteringInfo clusteringInfo = ClusteringInfoSerialization.ReadXml(@"C:\Lang\projects\THESIS_RELATED\Graphs\TestKMeans\bin\Release\clustering.xml");

			foreach(Cluster cluster in clusteringInfo.GetClusters())
			{
				Console.WriteLine(cluster.GetSize());
				 Console.WriteLine("Centroid : " + cluster.Centroid.DocumentName); 
				 foreach(DocumentInfo document in cluster.GetDocuments())
				 {
				 	 Console.WriteLine(document.DocumentName);
				 }
			}
		}
	}
}
